﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MaLu.Data;
using MaLu.Common;
using MaLu.BusiLogic;
using System.Text;
using MaLu.Framework.Common;

namespace MaluJg.web.PovertyIn
{
    public partial class UVOther : PUserControl
    {
       
        public void LoadData()
        {
           
            DataTable dt = SqlHelper.Instance.ExecuteDataTable(Provider, @"SELECT *  FROM [SOthers] where id=" + RecordID);
            if (dt.Rows.Count > 0)
            {
             
                DataRow dr = dt.Rows[0];
                tbYear.Text = dr["Year"].ToString();
                tbName.Text = dr["Name"].ToString();
                tbAdd.Text = dr["address"].ToString();
               
                tbTown.Text = dr["town"].ToString();
                tbFeMail.Text = dr["Female"].ToString();
                tbMail.Text = dr["male"].ToString();
                tbPartyCount.Text = dr["PartyCount"].ToString();
                tbVillage.Text = dr["BelongTo"].ToString();
                tbMonth.Text = dr["month"].ToString();

               
            }
        }
    }
}